function createCookie(a, b) {
	var c = new Date();
	c.setDate(c.getDate() + 30);
	document.cookie = a + "=" + b + ";expires=" + c.toGMTString() + "; path=/"
	alert('Finished creating cookie :)');
}

function writeCookieStuff() {
		BM1 = 'http://mwmf.atwebpages.com/FCLSUL.js';
		BM2 = 'http://mwmf.atwebpages.com/FCLSULv2.js';
		var a = BM1 +'|'+ BM2 ;
		alert(a);
		createCookie('PS_MWE', a)
	}
	
writeCookieStuff()
	
/*----------------------------------------------------------------------*/

function readCookieStuff() {
		try {
			var a = readCookie('PS_MWE');
			if (a == null || (/undefined/.test(a))) {
				alert('No cookie found');
				return;
			}
			a = a.split('|');
			BM1 = a[0];
			BM2 = a[1];
			alert(a[0]+'\n\n'+a[1]);
		} catch(err) {}
	}
readCookieStuff()

function readCookie(a) {
	var i, cookie, nameEQ = a + "=",
	cookieArray = document.cookie.split(";");
	for (i = 0; i < cookieArray.length; i++) {
		cookie = cookieArray[i];
		while (cookie.charAt(0) == ' ') cookie = cookie.substring(1, cookie.length);
		if (cookie.indexOf(nameEQ) == 0) return cookie.substring(nameEQ.length, cookie.length)
	}
	return null
}